package com.tang.objectOriented.basics.practice;

public class Homework04 {

}


/*
编写类A03, 实现数组的复制功能copyArr，输入旧数组，返回一个新数组，元素和旧数组一样
 */

class A03 {
    public int[] copyArry(int[] oldArr) {
        int[] newArry = new int[oldArr.length];
        for (int i = 0; i < oldArr.length; i++) {
            newArry[i] = oldArr[i];
        }
        return newArry;
    }
}
